int checkLight() {
  int lightsensed = 0;
  int lightvalue = SensorValue (light);
  if (lightvalue <100) {
    lightsensed = 1;
  }
  return lightsensed;
}
